﻿using EvincePayroll.Communication.Database;
using EvincePayroll.Communication;
using EvincePayroll.Data;
using EvincePayroll.Data.Authentication;
using System.Configuration;

namespace EvincePayroll.Logic
{
    public class BaseLogic
    {
        public CommunicationFactory factory = null;
        public IDatabaseRepository db = null;
        protected APIAuthentication _userCredentials;
        

        public BaseLogic(string userId)
        {
            factory = new CommunicationFactory();
            this._userCredentials = new APIAuthentication(userId);
            db = factory.GetDatabasefacotry;
            
        }
    }
}
